import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 产后计划查询
export const PostpartumPlanningQuery = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getProdPlanQuery`,parms)
}

// 裁断人数查询
export const AdjudicationNumberInquiry = () => {
    return service.get<any,any>(`/bioDeptWrok/getDeptPersonQuery`)
}

// 更新指令
export const updateLotNo = () =>{
    return LoginWork.get<any,any>(`/bioDeptWrok/prodLotUpdate`)
}

// 更新资料
export const updateLotNoDate = () =>{
    return LoginWork.get<any,any>(`/bioDeptWrok/prodDataUpdate`)
}

// 操作区更新
export const OperationalUpdate = (lastPersons:number,stitchPersons:number,cutPersons:number) => {
    return LoginWork.get<any,any>(`/bioDeptWrok/deptPersonUpdate?lastPersons=${lastPersons}&stitchPersons=${stitchPersons}&cutPersons=${cutPersons}`)
}

// 工序产能修改
export const ProcessCapacityModification = () => {
    return service.get<any,any>(`/bioDeptWrok/getIePlanQuery`)
}

// 工序产能新增
export const AddCapacityModification = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/iePlanAdd`,parms)
}

// 工序产能删除
export const deleteCapacityModification = (seqNo:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/iePlanDelete?seqNo=${seqNo}`)
}